package com.zzzzzz.test;

import org.springframework.web.context.support.AnnotationConfigWebApplicationContext;

public class BeanUnit {
	public static Object getBean(String name){
		AnnotationConfigWebApplicationContext context = new AnnotationConfigWebApplicationContext();  
		context.scan("com.zzzzzz.test.config");
		context.refresh();
		return context.getBean(name);
	}
}

